package com.yunxi.model.sto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 车辆库存保养项目
 * </p>
 *
 * @author Guan
 * @since 2019-10-14
 */
@Data
@EqualsAndHashCode(callSuper = false)

@TableName("pms_vehicle_maintain_item")
@ApiModel(value="VehicleMaintainItem对象", description="车辆库存保养项目")
public class VehicleMaintainItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "ITEM_ID", type = IdType.UUID)
    private String itemId;

    @ApiModelProperty(value = "保养记录ID")
    @TableField("MAINTAIN_RECORD_ID")
    private String maintainRecordId;

    @ApiModelProperty(value = "VIN码")
    @TableField("VIN")
    private String vin;

    @ApiModelProperty(value = "保养周期")
    @TableField("MAINTAIN_PERIOD")
    private String maintainPeriod;

    @ApiModelProperty(value = "保养时间")
    @TableField("MAINTAIN_DATE")
    private Date maintainDate;

    @ApiModelProperty(value = "该项是否保养（0否，1是）")
    @TableField("IS_MAINTAINED")
    private Integer isMaintained;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_DATE",fill = FieldFill.INSERT)
    private Date createDate;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "CREATE_BY", fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "UPDATE_DATE",fill = FieldFill.UPDATE)
    private Date updateDate;

    @ApiModelProperty(value = "修改人")
    @TableField(value = "UPDATE_BY", fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "状态")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "是否删除")
    @TableField("IS_DEL")
    private Integer isDel;

    @ApiModelProperty(value = "备注")
    @TableField("MEMO")
    private String memo;

    private String itemName;
}
